function logpsicapital = logcapprod(x,p)

logpsicapital = p.b*x.^2 + p.ak*x + p.q;

end